/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package adaptationLayer;

import contextManagement.ContextBroker;
import java.beans.PropertyChangeEvent;
import userInterface.GraphicalUserInterface;

/**
 *
 * @author huangqing
 */
public class UserPreferenceAdapter extends Adapter{
    public UserPreferenceAdapter(GraphicalUserInterface gui){
        myGUI = gui;
    }


   public void setContextBroker(ContextBroker cb) {
        myBroker = cb;
        myBroker.addPropertyChangeListener("uPref", this);
    }


    public void propertyChange(PropertyChangeEvent pce) {

        if (pce.getPropertyName().equals("uPref")){
            System.out.println("Change interface" + pce.getNewValue());
        }
    }

}
